<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>this和原型没有关系</title>
</head>
<body>
    <script>
        let hd = {
            name : "后盾人",
            show :function(){
                // this指向的永远是调用它的对象，跟原型没什么关系
                console.log(this.name);
            }
        };
        hd.show();



        let hdms = {
            name : "xiasnn"
        };
        // 即使把show方法放到原型上
        Object.setPrototypeOf(hdms,hd);
        hdms.show();
        hd.show();
    </script>
</body>
</html>